import requests


class login_Api:
    @classmethod
    def login(cls, data_login):
        resp = requests.post(url='https://heimahr.itheima.net/api/sys/login',
                             json=data_login)
        return resp


if __name__ == '__main__':
    data_login = {"mobile":"13800000002","password":"hm#qd@23!"}
    resp = login_Api.login(data_login)
    print(resp.json())